/ Assembly List / LJCNetCommon / NetCommon / StringToMemStream

Namespace - LJCNetCommon


Parameters
text - The Text value.

Returns

The reference to the memory stream.

Syntax

C#
public static Stream StringToMemStream(String text)

Creates a memory stream from a string. (E)

Example

C#
using System.IO;
using LJCNetCommon;
        
// Creates a memory stream from a string.
private static void StringToMemStream()
{
  using (Stream stream = NetCommon.StringToMemStream("Text"))
  {
    // Check the text.
    string text = NetCommon.MemStreamToString(stream);
  }
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.